# 三元运算符
# 需求：求a与b的最大值
# 1.TrueValue if expression else FalseValue
a = 2
b = 4
result = a if a > b else b
print(result)

# 2.(FalseValue,TrueValue)[expression]
a = 2
b = 4
result = (b, a)[a > b]
print(result)
